; ModuleID = 'moudle'
source_filename = "moudle"

@globalVar = global [5 x i32] zeroinitializer

define i32 @combine(i32 %0, i32 %1, i32 %2, i32 %3) {
combineEntry:
  %arr1 = alloca i32, align 4
  %arr1_length = alloca i32, align 4
  %arr2 = alloca i32, align 4
  %arr2_length = alloca i32, align 4
  store i32 %0, i32* %arr1, align 4
  store i32 %1, i32* %arr1_length, align 4
  store i32 %2, i32* %arr2, align 4
  store i32 %3, i32* %arr2_length, align 4
  %load = load i32, i32* %arr1_length, align 4
  %load1 = load i32, i32* %arr2_length, align 4
  %plusResult = add nsw i32 %load, %load1
  %subResult = sub nsw i32 %plusResult, 1
  %res = getelementptr [5 x i32], [5 x i32]* @globalVar, i32 0, i32 %subResult
  %load2 = load i32, i32* %res, align 4
  ret i32 %load2
}
